<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="../../commons/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>挂号管理</title>
<link rel="stylesheet" href="${ctx}/static/css/admin.css">
<link rel="stylesheet" href="${ctx}/static/css/pintuer.css">
<link rel="stylesheet" type="text/css" href="${ctx}/static/js/bootstrap.min/css/bootstrap.min.css">
<link href="${ctx}/static/js/bootstrap.min/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="${ctx}/static/css/danju.css">
<script type="text/javascript" src="${ctx}/static/js/jq/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/bootstrap.min/js/bootstrap.min.js"></script>
<script src="${ctx}/static/js/bootstrap.min/js/bootstrap-datetimepicker.min.js"></script>
<script src="${ctx}/static/js/bootstrap.min/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${ctx}/static/js/jquery.js"></script>
<script src="${ctx}/static/js/pintuer.js"></script>
</head>

<body>

<div class="panel admin-panel">
	<form method="post" action="excel">
		<div class="panel-head"><strong class="icon-reorder"> 挂号管理</strong>
			<div style="float: right;">
				<button class="button border-main a1-1" type="button"> 门诊挂号</button>
				<button class="button border-main excel" type="submit"> 导出Excel</button>
			    <a class="button border-main" href="management"> 刷新</a>
			</div>
			<div style="clear: both;"></div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li>
						<input type="text" id="search" class="input" placeholder="按医生姓名搜索"/>
					</li>
					<li>
						<a class="button border-main icon-search" href="JavaScript:;" onclick="location ='search?name='+document.getElementById('search').value;"> 搜索</a>
					</li>
					<li>
						<a href="management">清除搜索</a>
					</li>
				</ul>
			</div>
			<table class="table table-hover text-center">
			<tr>
				<th width="8%" style="text-align:left; padding:10px 0;padding-left:20px;border-bottom: 2px solid #ddd;border-top: 0px solid #ddd;font-weight: bold;"> ID </th>
				<th style="text-align: center;" width="10%">费别</th>
				<th style="text-align: center;" width="14%">病人姓名</th>
				<th style="text-align: center;">医生姓名</th>
				<th style="text-align: center;">性别</th>
				<th style="text-align: center;" width="5%">挂号费</th>
				<th style="text-align: center;" width="10%">类型</th>
				<th style="text-align: center;" width="15%">挂号日期</th>
				<th style="text-align: center;">就诊情况</th>
			</tr>
			<c:forEach items="${ outList }" var="list">
				<tr>
					<td style="text-align:left; padding-left:20px;border-bottom: 1px solid #ddd;"><input type="hidden" name="id" value="${list.id }" /> ${list.id }</td>
					<td style="border-bottom: 1px solid #ddd;"><input type="hidden" name="category" value="${list.category }"/>${list.category }</td>
					<td style="border-bottom: 1px solid #ddd;"><input type="hidden" name="name" value="${list.name }"/>${list.name }</td>
					<td style="border-bottom: 1px solid #ddd;"><input type="hidden" name="do_name" value="${list.do_name }"/>${list.do_name }</td>
					<td style="border-bottom: 1px solid #ddd;"><input type="hidden" name="sex" value="${list.sex }"/>${list.sex }</td>
					<td style="border-bottom: 1px solid #ddd;"><input type="hidden" name="fee" value="${list.fee }"/>${list.fee }</td>
					<td style="border-bottom: 1px solid #ddd;"><input type="hidden" name="c_type" value="${list.c_type }"/>${list.c_type }</td>
					<td style="border-bottom: 1px solid #ddd;"><input type="hidden" name="dat" value="${list.dat }"/>${list.dat }</td>
					<td style="border-bottom: 1px solid #ddd;"><input type="hidden" name="deal" value="${list.deal }"/>${list.deal }</td>
				</tr>
			</c:forEach>
			</table>
		</div>
	</form>
</div>

		
		
<div class="frame">
	<form action="domanagement" method="post">
    <div class="panel panel-info">
        <div class="panel-heading">添加挂号<span class="right xx">X</span></div>
        <div class="panel-body">
            <div class="ma left">
	            <div class="input-group left w4">
				     <span class="input-group-addon" id="basic-addon3">费别</span>
					 <select class="form-control" aria-describedby="basic-addon3" name="category">
	                		<option value="自费">自费</option>
	                		<option value="公费">公费</option>
	                </select>
				</div>


				<div class="input-group w4 left">
				    <span class="input-group-addon" id="basic-addon4">姓名</span>
				    <input type="text" class="form-control" id="basic-ur4" aria-describedby="basic-addon3" name="name">
				</div>
	
	
				<div class="input-group left w4">
				     <span class="input-group-addon" id="basic-addon3">性别</span>
					 <select class="form-control" aria-describedby="basic-addon3" name="sex">
	                		<option value="男">男</option>
	                		<option value="女">女</option>
	                </select>
				</div>
				
				
            </div>
             
            <div class="ma left">
				<div class="input-group left w4">
				     <span class="input-group-addon" id="basic-addon3">号别</span>
					 <select class="form-control" aria-describedby="basic-addon3" name="d_type">
	                		<option value="专家">专家</option>
	                		<option value="普通">普通</option>
	                </select>
				</div>
				
				
	            <div class="input-group left w4">
	                <span class="input-group-addon" id="basic-addon3">电话</span>
	                <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3" name="phone">
	            </div>
	            
	            <div class="input-group left w4">
				     <span class="input-group-addon" id="basic-addon3">就诊</span>
					 <select class="form-control" aria-describedby="basic-addon3" name="c_type">
	                		<option value="初诊">初诊</option>
	                		<option value="复诊">复诊</option>
	                </select>
				</div>
             </div>

            <div class="ma left">
	            <div class="input-group left w4">
	                <span class="input-group-addon" id="basic-addon3">科室名称</span>
	                <select class="form-control select" id="url" aria-describedby="basic-addon3" name="de_id">
	                	<c:forEach items="${ li }" var="list">
	                		<option value="${ list.id }">${ list.d_name }</option>
	                	</c:forEach>
	                </select>
	            </div>
	            
	            
	            <div class="input-group left w4">
	                <span class="input-group-addon" id="basic-addon3">挂号费</span>
	                <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3" name="fee">
	            </div>
	            
	            <div class="input-group left w4">
	                <span class="input-group-addon" id="basic-addon3">医生</span>
	                <select class="form-control" id="testSel" aria-describedby="basic-addon3" name="do_name">
	                </select>
	            </div>
	            
             </div>
             
            <div class="btns">
                <button class="btn btn-default xx" type="button">关闭</button>
                <button class="btn btn-default" type="submit">保存</button>
            </div>
        </div>
    </div>
	</form>
</div>
</body>
		
<script type="text/javascript">
	
	$(function(){
		var ipt = document.getElementById('data');//获取input的节点
		var v = ipt.value;//获取input的值
		if( v!=null ){
			alert(v); 
		}
	});
	
	
	$(".select").click(function() {
		//console.log($("#url").val());
		$("#testSel").empty();
		$.post('ks',{
			pa:$("#url").val()
		},function(e){
			console.log("返回");
			  for(var i=0; i<e.length;i++){
              	$("#testSel").append("<option value='"+e[i].userName+"'>"+e[i].userName+"</option>");
             }
		});
	});
	
		
	$('.a1-1').click(function () {
	     $('.frame').show();
	 })
	 $('.xx').click(function () {
	     $('.frame').hide();
	 })
 
	
</script>


</html>